<?php
require_once ('push/XingeApp.php');
class pushmanager extends CI_Model {
    public function __construct()
    {
        parent::__construct();
		$this->load->model('usermanager');
    }
	
	public function push_by_youmi($user,$coin){
		$row=$this->usermanager->get_user_info($user);
		$userCoin=$row['coin'];
		$userCoin=$userCoin+$coin;
		$this->usermanager->update_coin($user,$userCoin);
		return XingeApp::PushAccountAndroid(2100167961, "77ba7990636a6567a5734761d0cd5a44", "金币到账提醒", $coin."金币已到账", $user);
	}
	public function push_all(){
		
	}
}
?>